<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>">
		<title>消费退换查询</title>
		<%@include file="../collect/meta.jsp"%>
		<script type="text/javascript" charset="utf-8"
			src="${ctx }/calender/WdatePicker.js">
		</script>
		<script type="text/javascript" src="${ctx}/js/returnTop.js"></script>
		<link rel="stylesheet" href="css/radius.css" type="text/css"></link>
	</head>
	<body lang="zh-cn">
		<div class="wrapper">
			<c:import url="/muser/musertop.jsp"></c:import>
			<div class="main-container" id="main-container">
				<div class="main-container-inner">
					<c:import url="/muser/muserleft.jsp"></c:import>
					<div class="main-content">
						<div class="breadcrumbs" id="breadcrumbs">
							<ul class="breadcrumb">
								<li><i class="icon-home home-icon"></i>退换管理</li>
								<li>消费退换申请查询</li>
							</ul>
							</ul>
							<!-- .breadcrumb -->
						</div>
						<div class="page-content">
							<div class="row">
								<div class="col-xs-12">
									<!-- PAGE CONTENT BEGINS -->
									<form action="bApplication!auditorRecord">
										<input type="text" class="Wdate"
											onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
											style="width:186px;height:30px;" placeholder="开始时间"
											name="beginTime" value="${beginTime }">
										<input type="text" class="Wdate"
											onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
											style="width:186px;height:30px;" placeholder="结束时间"
											name="endTime" value="${endTime }">
										<select name="passType">
											<option value="4" <c:if test="${passType == 4}">selected='selected'</c:if>>全部</option>
											<option value="1" <c:if test="${passType == 1}">selected='selected'</c:if>>未审核</option>
											<option value="2" <c:if test="${passType == 2}">selected='selected'</c:if>>批准</option>
											<option value="3" <c:if test="${passType == 3}">selected='selected'</c:if>>不批准</option>
										</select>
										<input type="submit" class="btn btn-primary radius btn-sm" value="搜 索">
										<c:if test="${message==null }"></c:if>
										<c:if test="${message!=null }"><span style="color: red;">${message }</span></c:if>
									</form>
									<br />
									<form>
										<table class="table table-striped table-bordered table-hover">
											<tr>
												<td><div align="center">会员账号</div></td>
												<td><div align="center">会员姓名</div></td>
												<td><div align="center">消费金额</div></td>
												<td><div align="center">申请时间</div></td>
												<td><div align="center">申请人</div></td>
												<td><div align="center">申请店铺</div></td>
												<td><div align="center">申请理由</div></td>
												<td><div align="center">状态</div></td>
											</tr>
											<c:forEach items="${bList}" var="b" varStatus="status">
												<tr>
													<td><div align="center">${b.member.mobile}</div></td>
													<td>
														<div align="center">
															<c:if test="${not empty b.consumeDeleteLog.memberName }">${b.consumeDeleteLog.memberName}</c:if>
														</div>
													</td>
													<td>
														<div align="center">${b.consumeDeleteLog.money }</div>
													</td>
													<td><div align="center">${b.createTime }</div></td>
													<td><div align="center">${b.consumeDeleteLog.userName }</div></td>
													<td><div align="center">${b.consumeDeleteLog.shopName}</div></td>
													<td><div align="center"><c:if test="${b.applicationType==1}"> 操作失误 </c:if><c:if test="${b.applicationType==2}"> 其他：${b.applicationReason } </c:if></div></td>
													<td>
														<div align="center">
															<c:if test="${b.auditorPass==1}"> 未审核 </c:if>
															<c:if test="${b.auditorPass==2}"> 已批准</c:if>
															<c:if test="${b.auditorPass==3}"><font color="red">未批准</font></c:if>
														</div>
													</td>
												</tr>
											</c:forEach>
										</table>
										<table width="100%" border="0">
											<tr bgcolor="#fff0f0">
												<td width="19%">&nbsp;</td>
												<td width="13%">
													<div align="center">
														<a
															href="bApplication!auditorRecord?index=1&beginTime=${beginTime }&endTime=${endTime }&passType=${passType} ">第一页</a>
													</div>
												</td>
												<td width="13%">
													<div align="center">
														<a
															href="bApplication!auditorRecord?index=${index-1}&beginTime=${beginTime }&endTime=${endTime }&passType=${passType} ">上一页</a>
													</div>
												</td>
												<td width="10%">
													<div align="center">${index }</div>
												</td>
												<td width="13%">
													<div align="center">
														<a
															href="bApplication!auditorRecord?index=${index+1}&beginTime=${beginTime }&endTime=${endTime }&passType=${passType} ">下一页</a>
													</div>
												</td>
												<td width="13%">
													<div align="center">
														<a
															href="bApplication!auditorRecord?index=${page }&beginTime=${beginTime }&endTime=${endTime }&passType=${passType} ">最末页</a>
													</div>
												</td>
												<td width="19%">
													&nbsp;
												</td>
											</tr>
										</table>
									</form>
									<!-- PAGE CONTENT ENDS -->
								</div>
								<!-- /.col -->
							</div>
							<!-- /.row -->
						</div>
						<!-- /.page-content -->
					</div>
					<!-- /.main-content -->
				</div>
				<!-- /.main-container-inner -->
				<a href="#" id="btn-scroll-up"
					class="btn-scroll-up btn btn-sm btn-inverse"
					style="position: fixed; bottom: 0;"> <i
					class="icon-double-angle-up icon-only bigger-110"></i> </a>
			</div>
			<!-- /.main-container -->
			<div class="push"></div>
		</div>
		<c:import url="/collect/down.jsp"></c:import>

		<script type="text/javascript">
			 $('.mtuihuan > ul').show();
			 $('.mtuihuan > ul > li > a').eq(2).css("color","red"); 
		</script>
	</body>
</html>